package com.yun.test.circularDependency.generalProcess;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author EDZ
 */
@Component
public class NotifyListener implements ApplicationListener<NotifyEvent> {
	@Override
	public void onApplicationEvent(NotifyEvent event) {
		System.out.println("邮件地址：" + event.getEmail());
		System.out.println("邮件内容：" + event.getContent());
	}
}